from django.db import models

# Create your models here.
class UserCount(models.Model):
    # user = models.ForeignKey(User,on_delete=models.CASCADE,related_name='usercount',verbose_name='用户')
    username = models.CharField(max_length=128,null=True,verbose_name="用户名")
    web_visit_count = models.IntegerField(default=0,verbose_name="页面浏览数")
    goods_visit_count = models.IntegerField(default=0,verbose_name="商品浏览数")
    stay_time = models.IntegerField(default=0,verbose_name="停留时长，单位为秒")
    create_time = models.DateTimeField(auto_now_add=True,verbose_name="创建时间")
